//
//  CommonTools.swift
//  Weibo28
//
//  Created by 高辰 on 16/5/13.
//  Copyright © 2016年 itcast. All rights reserved.
//

import UIKit

//切换根视图控制器的通知名
let SwichRootVCNotification = "SwichRootVC"
//  点击表情按钮发送的通知名
let DidSeletedEmoticonNotification = "DidSeletedEmoticonNotification"
//  点击删除表情按钮发送的通知名
let DeleteEmoticonButtonNotification = "DeleteEmoticonButtonNotification"


/**随机颜色*/
func RandomColor() -> UIColor {
    
    let red = random() % 256
    let green = random() % 256
    let blue = random() % 256
    
    return UIColor(red: CGFloat(red) / 255, green: CGFloat(green) / 255, blue: CGFloat(blue) / 255, alpha: 1)
}

//屏幕的宽高
let ScreenWidth = UIScreen.mainScreen().bounds.size.width
let ScreenHeight = UIScreen.mainScreen().bounds.size.height